package com.example.javatest.service;

import com.example.javatest.entity.domain.TbUser;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
* @author cac_qin
* @description 针对表【tb_user】的数据库操作Service
* @createDate 2023-12-06 16:03:08
*/
public interface TbUserService extends IService<TbUser> {
    /**
     * 用户注册
     * @param userName
     * @param userPwd
     * @param checkPassword
     * @return 新用户ID
     */
    int userRegister(String userName, String userPwd, String checkPassword);

    /**
     * 用户登录
     * @param userName
     * @param userPwd
     * @param request
     * @return 脱敏后的用户信息
     */
    TbUser userLogin(String userName, String userPwd, HttpServletRequest request);
}
